import Common from './common.js'

class Login extends Common {
  constructor (url) {
    super()
    this.apiUrl = this.apiUrl + url
  }
  login (data) {
    return this.http_post(this.apiUrl + '/noauth/login', data)
  }
  adminlogin (data) { // 社团账号登陆
    return this.http_post(this.apiUrl + '/adminlogin', data)
  }
  adminlogout () {
    return this.http_post(this.apiUrl + '/adminlogout', null)
  }
}
 export default Login